
package com.scs.application.modules.upms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.modules.upms.entity.UserBlock;
import com.scs.application.modules.upms.request.UserBlockQueryRequest;

import com.scs.application.core.service.IBaseService;

import java.util.List;

/**
 * 用户区块 service 接口
 */
public interface UserBlockService extends IBaseService<UserBlock> {

    List<UserBlock> list(UserBlockQueryRequest request);


    IPage<UserBlock> page(UserBlockQueryRequest request);

    /**
     * 列出当前用户的区块。如果没有初始化过，将默认为适用于当前的区块
     *
     * @return
     */
    List<UserBlock> listCurrentUserBlock();

    /**
     * 恢复初始化布局
     * @param loginKey
     * @return
     */
    List<UserBlock> restoreBlocks(String loginKey);
}
